package strategy;

public class Main {
    public static void main(String[] args) {
        Player player1 = new Player("T", new WinningStrategy(51120));
        Player player2 = new Player("H", new ProbStrategy(321));
        for (int i = 0; i < 1000; i++) {
            Hand hand1 = player1.nextHand();
            Hand hand2 = player2.nextHand();
            if (hand1.isStrongerThan(hand2)) {
                player1.win();
                player2.lose();
            } else if (hand2.isStrongerThan(hand1)) {
                player2.win();
                player1.lose();
            } else {
                player1.even();
                player2.even();
            }

        }
        System.out.println(player1);
        System.out.println(player2);
    }
}
